from app import create_app
from flask_cors import CORS

if __name__ == '__main__':
    app = create_app()
    # 配置CORS
    CORS(app, origins="*", supports_credentials=True)  # 允许所有来源（开发环境临时用）
    app.run(debug=True, host='0.0.0.0', port=5000)